/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CharacterType;
import Core.Vector2;
import FlyingType.Arrow;
import Thing.Character;
/**
 *
 * @author THINH
 */
public class Huntress extends Character{
    //constructor
    public Huntress(){
        super();
        
    }
    public Huntress(String pathImage, int frameWidth, int frameHeight, int[]standSequence, 
            int[]goRightSequence , int[]jumpSequence, int[] shootSequence, int[]shooNormalSeq, int[] sitSequence){
        super(pathImage, frameWidth, frameHeight, standSequence,goRightSequence, jumpSequence, shootSequence
                ,shooNormalSeq,sitSequence);
        
        //sprite.defineCollisionRectangle(0, sprite.getHeight()*10/13, sprite.getWidth()*3/4,6);
    }
    //main func
    public void update(){
        //code here
        sprite.defineCollisionRectangle( sprite.getWidth()*1/4, sprite.getHeight()*10/13, sprite.getWidth()*2/4,6);
        super.update();        
    }
    
    //func
    public void shoot(Vector2 direction){
        //code here
        if(flying==null){
            int[] sequence={7,7,7,8,8,8,9,9,9,10,10,10};
            flying = new Arrow(sequence);
        }
        
        super.shoot(direction);
    }
}
